import { createRouter,createWebHistory } from "vue-router";
import Mulu from "../views/mulu.vue";
import Home from "../views/homeView.vue";
import Register from "../views/register.vue";
import Login from "../views/login.vue";
import Bingtu from "../components/bingtu.vue";
import Box from "../components/box.vue";
import Mapp from "../components/mapp.vue";
import Place from "../components/place.vue";
import Xiaoshou from "../components/xiaoshou.vue";
import Xuqiu from "../components/xuqiu.vue";
import Zhuzhuangtu from "../components/zhuzhuangtu.vue";
import ModuleMain from "../views/moduleMain.vue";
let  router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      redirect: '/login',
      component:Login,
    },
    {
      path: '/home',
      name:'Home',
      component:Home,
    },
    {
        path: '/register',
        component: Register,
    },
    {
      path: '/login',
      component: Login,
  },
  {
    path: '/mulu',
    component: Mulu,
},
{
  path: '/bingtu',
  component: Bingtu,
},
{
  path: '/box',
  component: Box,
},
{
  path: '/mapp',
  component: Mapp,
},
{
  path: '/place',
  component: Place,
},
{
  path: '/xiaoshou',
  component: Xiaoshou,
},
{
  path: '/xuqiu',
  component: Xuqiu,
},
{
  path: '/zhuzhuangtu',
  component: Zhuzhuangtu,
},
{
  path: '/moduleMain',
  component: ModuleMain,
},

  ],
})

export default router;